package com.joolun.system.service;

import java.util.List;

import com.joolun.system.domain.PayLink;
import com.joolun.system.domain.PayOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joolun.system.domain.PayParam;


/**
 * 课程订单Service接口
 * 
 * @author joolun
 * @date 2025-07-07
 */
public interface IPayOrderService extends IService<PayOrder>
{
    /**
     * 查询课程订单
     * 
     * @param id 课程订单主键
     * @return 课程订单
     */
    public PayOrder selectPayOrderById(Long id);

    /**
     * 查询课程订单列表
     * 
     * @param payOrder 课程订单
     * @return 课程订单集合
     */
    public List<PayOrder> selectPayOrderList(PayOrder payOrder);

    /**
     * 新增课程订单
     *
     * @param payOrder 订单基础参数
     * @param payLink 支付链接
     * @return 结果 返回订单对象
     */
    public PayOrder insertPayOrder(PayOrder payOrder, PayLink payLink);

    /**
     * 修改课程订单
     * 
     * @param payOrder 课程订单
     * @return 结果
     */
    public int updatePayOrder(PayOrder payOrder);

    /**
     * 批量删除课程订单
     * 
     * @param ids 需要删除的课程订单主键集合
     * @return 结果
     */
    public int deletePayOrderByIds(Long[] ids);

    /**
     * 删除课程订单信息
     * 
     * @param id 课程订单主键
     * @return 结果
     */
    public int deletePayOrderById(Long id);
}
